package com.pospi.pospihold.ui.vip_ui;

import android.os.Bundle;
import android.view.View;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;
import android.widget.TextView;

import com.kyleduo.switchbutton.SwitchButton;
import com.pospi.pospihold.R;
import com.pospi.pospihold.ui.base.BaseActivity;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class VIPRegisterActivity extends BaseActivity implements OnCheckedChangeListener {

    @Bind(R.id.et_vip_name)
    EditText etVipName;
    @Bind(R.id.et_vip_phone)
    EditText etVipPhone;
    @Bind(R.id.tv_vip_birth)
    TextView tvVipBirth;
    @Bind(R.id.tv_vip_sex)
    TextView tvVipSex;
    @Bind(R.id.tv_vip_email)
    EditText tvVipEmail;
    @Bind(R.id.tv_vip_address)
    EditText tvVipAddress;
    @Bind(R.id.sb_msg)
    SwitchButton sbMsg;
    @Bind(R.id.sb_sms)
    SwitchButton sbSms;
    @Bind(R.id.sb_email)
    SwitchButton sbEmail;
    @Bind(R.id.sb_phone_call)
    SwitchButton sbPhoneCall;
    @Bind(R.id.sb_leaflet)
    SwitchButton sbLeaflet;
    @Bind(R.id.btn_cancle)
    TextView btnCancle;
    @Bind(R.id.btn_sure)
    TextView btnSure;
    private final String TAG = "VIPRegisterActivity.tag";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentLayout(R.layout.activity_vipregist);
        setTitle("会员注册");
        ButterKnife.bind(this);

        sbMsg.setOnCheckedChangeListener(this);
        sbSms.setOnCheckedChangeListener(this);
        sbEmail.setOnCheckedChangeListener(this);
        sbPhoneCall.setOnCheckedChangeListener(this);
        sbLeaflet.setOnCheckedChangeListener(this);
    }

    @OnClick({R.id.tv_vip_birth, R.id.tv_vip_sex, R.id.btn_cancle, R.id.btn_sure})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_vip_birth:
                break;
            case R.id.tv_vip_sex:
                break;
            case R.id.btn_cancle:
                break;
            case R.id.btn_sure:
                break;
        }
    }

    @Override
    public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {
        switch (buttonView.getId()) {
            case R.id.sb_msg:
                break;
            case R.id.sb_sms:
                break;
            case R.id.sb_email:
                break;
            case R.id.sb_phone_call:
                break;
            case R.id.sb_leaflet:
                break;
        }
    }
}
